package com.demo0215.controller;


import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RefreshScope
@RequestMapping("/redirect")
public class RedirectConsumerController {
    @GetMapping("/{location}")
    public String redirect(@PathVariable("location") String location){
        return location;
    }
}
